package com.cc.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class AppConfig {

    @Value("${names}")
    private String name;
    @Value("dates")
    private String data;


    @Bean
    public void showBean(){
        System.out.println("你的名字:" + name);
        System.out.println("你的创建日期" + data);
    }
}
